package com.wangxinyuchuan.demo.iterator;

/**
 * @author wangxinyuchuan
 * @date 2023/4/16 5:43 PM
 */
public interface Iterator<T> {

    boolean hasNext();

    T next();

    boolean hasPrev();

    T prev();
}
